package com.qianfeng.smartplatform.pojo;

import com.fasterxml.jackson.annotation.JsonFormat;

import java.io.Serializable;
import java.util.Date;

public class Device implements Serializable,CheckEmptyInterface{
    private String deviceId;

    private String deviceName;

    private Integer categyId;

    private Integer bindUserId;

    private Long sceneId;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",locale = "zh",timezone = "GMT+8")
    private Date bindTime;

    private Short isOnline;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",locale = "zh",timezone = "GMT+8")
    private Date connectTime;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",locale = "zh",timezone = "GMT+8")
    private Date lostConnectTime;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",locale = "zh",timezone = "GMT+8")
    private Date lastControlTime;

    private String currentConnectIp;

    private String connectLocation;

    private Category category;

    @Override
    public boolean isEmpty(CheckType checkType) {
        return CheckEmptyInterface.super.isEmpty(checkType);
    }

    public Category getCategory() {
        return category;
    }

    public void setCategory(Category category) {
        this.category = category;
    }

    private static final long serialVersionUID = 1L;

    public String getDeviceId() {
        return deviceId;
    }

    public void setDeviceId(String deviceId) {
        this.deviceId = deviceId == null ? null : deviceId.trim();
    }

    public String getDeviceName() {
        return deviceName;
    }

    public void setDeviceName(String deviceName) {
        this.deviceName = deviceName == null ? null : deviceName.trim();
    }

    public Integer getCategyId() {
        return categyId;
    }

    public void setCategyId(Integer categyId) {
        this.categyId = categyId;
    }

    public Integer getBindUserId() {
        return bindUserId;
    }

    public void setBindUserId(Integer bindUserId) {
        this.bindUserId = bindUserId;
    }

    public Long getSceneId() {
        return sceneId;
    }

    public void setSceneId(Long sceneId) {
        this.sceneId = sceneId;
    }

    public Date getBindTime() {
        return bindTime;
    }

    public void setBindTime(Date bindTime) {
        this.bindTime = bindTime;
    }

    public Short getIsOnline() {
        return isOnline;
    }

    public void setIsOnline(Short isOnline) {
        this.isOnline = isOnline;
    }

    public Date getConnectTime() {
        return connectTime;
    }

    public void setConnectTime(Date connectTime) {
        this.connectTime = connectTime;
    }

    public Date getLostConnectTime() {
        return lostConnectTime;
    }

    public void setLostConnectTime(Date lostConnectTime) {
        this.lostConnectTime = lostConnectTime;
    }

    public Date getLastControlTime() {
        return lastControlTime;
    }

    public void setLastControlTime(Date lastControlTime) {
        this.lastControlTime = lastControlTime;
    }

    public String getCurrentConnectIp() {
        return currentConnectIp;
    }

    public void setCurrentConnectIp(String currentConnectIp) {
        this.currentConnectIp = currentConnectIp == null ? null : currentConnectIp.trim();
    }

    public String getConnectLocation() {
        return connectLocation;
    }

    public void setConnectLocation(String connectLocation) {
        this.connectLocation = connectLocation == null ? null : connectLocation.trim();
    }
}